package com.liu.dw.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @version 1.0
 * @author： LiuWeiGang
 * 用户表对应字段
 */

@Data
@NoArgsConstructor
@ApiModel("用户实体")
public class Users implements Serializable {

    @ApiModelProperty("用户id")
    private  Integer id;

    @ApiModelProperty("用户昵称")
    private String nickname;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("管理员，false：非管理员")
    private boolean isAdmin;

    @ApiModelProperty("盐值")
    private String salt;

    @ApiModelProperty("最近登录时间")
    private Date lastLoginTime;

    @ApiModelProperty("添加时间")
    private Date createdTime;
}
